import {getBaseCategoryList} from 'api/api'
export default {
    state:{
        navList:[]
    },
    getters:{},
    mutations:{
        getnavList(state,navList){
            state.navList=navList
        }
    },
    actions:{
       async getnavList(store){
            try{
                const {data:navList}=await getBaseCategoryList()
                store.commit('getnavList',navList)
                return navList
            }catch(e){
                return Promise.reject(e)
            }
        }
    },
}